package com.wtf.dsp.admin.model.dto;

import com.baomidou.mybatisplus.annotation.DbType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * ClassName: DbSysConfigDTO
 * Description:
 * date: 2024/9/9 14:10
 *
 * @author linhuanyou
 * @version 1.0
 */
@Data
@ToString
@ApiModel("数据库配置新增请求类")
public class DbConfigAddDTO{
    @ApiModelProperty(value = "数据库")
    @NotNull(message = "请输入数据库")
    private DbType dbType ;
    @ApiModelProperty(value = "JDBC链接")
    @NotBlank(message = "请输入JDBC链接")
    @Length(min = 0,max = 100,message = "请输入不超过100个字符")
    private String jdbcUrl;
    @ApiModelProperty(value = "驱动类全路径")
    @NotBlank(message = "请输入驱动类")
    @Length(min = 0,max = 100,message = "请输入不超过100个字符")
    private String driverClass;

}
